package day8;

public class Nummber {
	private int num1;
	private int num2;
	public Nummber(int num1,int num2){
	this.num1 = num1;
	this.num2 = num2;
		
	}
	public void add() {
		int jieguo = num1 + num2;
		System.out.println(jieguo);

	}
	public void sub() {
		int jieguo = num1 -num2;
		System.out.println(jieguo);
	}
	public void multi() {
		int jieguo = num1*num2;
		System.out.println(jieguo);
	}
	public void div() {
		int jieguo = num1/num2;
		System.out.println(jieguo);
	}
	@Override
	public String toString() {
		return "Nummber [num1=" + num1 + ", num2=" + num2 + "]";
	}
	public int getNum2() {
		return num2;
	}
	public void setNum2(int num2) {
		this.num2 = num2;
	}
	
}